import dayjs from 'dayjs'
const tableColumns = [
  {
    headerCheckboxSelection: true,
    checkboxSelection: true,
    width: 50,
    showDisabledCheckboxes: false,
    pinned: 'left',
  },
  {
    headerName: '公司',
    field: 'companyName',
    width: 150,
  },
  {
    headerName: '仓库名称',
    field: 'warehouseName',
    width: 150,
  },
  {
    headerName: '库位',
    field: 'storageName',
    width: 150,
  },
  {
    headerName: '客户名称',
    field: 'customName',
    width: 150,
  },
  {
    headerName: '订单号',
    field: 'orderCode',
    width: 150,
  },
  {
    headerName: '流转卡号',
    field: 'circulatCard',
    width: 150,
  },
  {
    headerName: '布号',
    field: 'clothCode',
    width: 150,
  },
  {
    headerName: '品名',
    field: 'brandName',
    width: 150,
  },
  {
    headerName: '色号',
    field: 'colorCode',
    width: 150,
  },
  {
    headerName: '色称',
    field: 'colorName',
    width: 150,
  },
  {
    headerName: '匹数',
    field: 'horseNo',
    width: 150,
  },
  {
    headerName: '重量',
    field: 'weight',
    width: 150,
  },
  {
    headerName: '布笼编号',
    field: 'shelveCode',
    width: 150,
  },
  {
    headerName: '入库日期',
    field: 'stockInDate',
    width: 150,
  },
  {
    headerName: '存放天数',
    field: 'stayDate',
    width: 150,
    valueGetter:(params:any)=>{
      return dayjs(params.data.stockInDate).diff(dayjs(),'day')
    }
  },
]

export { tableColumns } 